#! /bin/csh -f
# Test example 7
# Jurgen F. Doreleijers

echo ""
echo "Test Example 7: aq2x script"
echo "---------------------------"

echo ""
\cp $aquaroot/exmpls/Test.pdb .
\cp $aquaroot/exmpls/Test.noe .
$aquaroot/scripts/aq2x xplor Test.noe Test.xplor Test.pdb > /dev/null
echo "=================================================================="
echo "Differences for output file aq2x.log:"
echo "=================================================================="
diff aq2x.log $aquaroot/exmpls/aq2x.log | gawk '{ tus = $0; getline \
    if (($0 !~ /Now opening:/ ) && ($0 !~ /Aqua program directory:/) && \
        ($2 !~ /^[0-9].[0-9]+u$/) &&  \
        ($0 !~ /StereoLIB-aqua/ ) && ($0 !~ /PseudoLIB-aqua/ ) ) \
    { print tus; print $0 } }' -
echo ""
echo ""
echo "=================================================================="
echo "Differences for output file Test.xplor:"
echo "=================================================================="
diff Test.xplor $aquaroot/exmpls/Test.xplor | gawk '{ tus = $0; getline \
    if ($5 != "CREATED:") { print tus; print $0 } }' -
